package com.att.service.impl;

import com.att.bean.SchClassBean;
import com.att.dao.SchClassDaoMapper;
import com.att.service.SchClassService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("schClassService")
public class SchClassServiceImpl implements SchClassService {

    @Resource
    private SchClassDaoMapper schClassDaoMapper;

    @Override
    public List<SchClassBean> findByCondition(SchClassBean bean) {
        return schClassDaoMapper.findByCondition(bean);
    }

    @Override
    public boolean insert(SchClassBean bean) {
        return schClassDaoMapper.insert(bean);
    }

    @Override
    public boolean update(SchClassBean bean) {
        return schClassDaoMapper.update(bean);
    }

    @Override
    public boolean delete(Integer id) {
        return schClassDaoMapper.delete(id);
    }

    @Override
    public List<SchClassBean> findSchClassName(SchClassBean bean) {
        return schClassDaoMapper.findSchClassName(bean);
    }
}
